(function(t){if(t.JCIblockBrands){return}t.JCIblockBrands=function(t){this.blockID="";this.obBlock=null;this.dataName="data-popup";if(!!t&&typeof t==="object"){if(!!t.blockID&&BX.type.isNotEmptyString(t.blockID)){this.blockID=t.blockID}if(!!t.dataName&&BX.type.isNotEmptyString(t.dataName)){this.dataName=t.dataName}}if(this.blockID!==""){BX.ready(BX.delegate(this.Init,this))}};t.JCIblockBrands.prototype.Init=function(){if(this.blockID===""){return}this.obBlock=BX(this.blockID);if(!!this.obBlock){BX.bindDelegate(this.obBlock,"mouseover",{attribute:this.dataName},BX.proxy(this.mouseOver,this));BX.bindDelegate(this.obBlock,"mouseout",{attribute:this.dataName},BX.proxy(this.mouseOut,this))}};t.JCIblockBrands.prototype.mouseOver=function(){var t="",e=BX.proxy_context,o=null,i=null;if(!!e&&e.hasAttribute(this.dataName)){t=e.getAttribute(this.dataName);o=BX(t);if(!!o){if(!BX.hasClass(e,"hover")){BX.addClass(e,"hover");if(o.offsetHeight>40){o.style.top="-1px"}else{o.style.top="50%";o.style.marginTop="-"+parseInt(o.offsetHeight,10)/2+"px"}}}}};t.JCIblockBrands.prototype.mouseOut=function(){var t="",e=BX.proxy_context,o=null;if(!!e&&e.hasAttribute(this.dataName)){t=e.getAttribute(this.dataName);o=BX(t);if(!!o){BX.removeClass(e,"hover")}}}})(window);